package com.mysiteforme.admin.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mysiteforme.admin.entity.ElectricityClassify;
import com.mysiteforme.admin.entity.ElectricityHeadlines;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 * 平台头条 Mapper 接口
 * </p>
 *
 * @author wangl
 * @since 2019-09-20
 */
public interface ElectricityHeadlinesDao extends BaseMapper<ElectricityHeadlines> {
    void saveHeadlinesClassify(@Param("headlinesId") Long id, @Param("classifies") Set<ElectricityClassify> classifies);
    ElectricityHeadlines selectHeadlinesById(@Param("id") Long id);
    void dropHeadlinesClassify(@Param("headlinesId")Long id);

}
